import request from '@/utils/request'
import qs from 'qs'

/**
 * 获取数据列表
 * @returns {*}
 */
export const getDataList = (apiUrl, data) => {
  return request({
    url: `/${apiUrl}`,
    method: 'POST',
    data: qs.stringify(data),
    headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' }
  })
}
